<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>布局</title>
  <style>
  /* *{
    margin: 0;
    padding: 0;
  } */
 div{
    height: 200px;
  }
  .right-fix .left{
    background: skyblue;
    margin-right: 210px;
  }
  .right-fix .right{
    float: right;
    width: 200px;
    background: #555;
  }
  .left-fix .left{
    float: left;
    width: 200px;
    background-color:thistle;
  } 
  .left-fix .right{
    margin-left: 210px;
    /* overflow: hidden; */
    background-color: coral;
  } 
  .leftright-fix .left{
    float: left;
    width: 200px;
    background-color: cyan;
  }
  .leftright-fix .right{
    float: right;
    width: 200px;
    background-color:darkgray;
  }
  .leftright-fix .content{
    margin: 0 210px;
    background-color: aquamarine;
  }
  </style>
</head>
<body>
  <h2>两栏布局-右固定</h2>
  <div class="right-fix">
    <div class="right">
      这是右固定
    </div>
    <div class="left">
      dfj dfksdf dsf d   dsfjksdfj asdfjdfkjdasf jdskf jaj dsfas dd dddddd ddddddddf dddd dddddddddgf
      dfj dfksdf dsf d   dsfjksdfj asdfjdfkjdasf jdskf jaj dsfas dd dddddd ddddddddf dddd dddddddddgf
    </div>
  </div>
  
  <h2>两栏布局-左固定</h2>
  <div class="left-fix">
    <div class="left">这是左固定</div>
    <div class="right">
        dfj dfksdf dsf d   dsfjksdfj asdfjdfkjdasf jdskf jaj dsfas dd dddddd ddddddddf dddd dddddddddgf
        dfj dfksdf dsf d   dsfjksdfj asdfjdfkjdasf jdskf jaj dsfas dd dddddd ddddddddf dddd dddddddddgf
    </div>
  </div>
  <h2>三栏布局-两边固定</h2>
  <div class="leftright-fix">
    <div class="left">两边固定</div>
    <div class="right">两边固定</div>
    <div class="content">
        dfj dfksdf dsf d   dsfjksdfj asdfjdfkjdasf jdskf jaj dsfas dd dddddd ddddddddf dddd dddddddddgf
        dfj dfksdf dsf d   dsfjksdfj asdfjdfkjdasf jdskf jaj dsfas dd dddddd ddddddddf dddd dddddddddgf
    </div>    
  </div>
</body>
</html>